<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>ZeroPage Backup Report (Recently 15 items)</title>
    <link>http://zeropage.neocoin.net/information.html/</link>
    <description>ZeroPage Bakcup Automation Result Viewer</description>
    <language>en-us</language>
    <pubDate><%= Time.new.rfc2822 %></pubDate>
    <lastBuildDate><%= Time.new.rfc2822 %></lastBuildDate>
    <docs>http://redmine.neocoin.net/versions/show/21</docs>
    <generator>neocoin</generator>
    <managingEditor>neocoin@gmail.com</managingEditor>
    <webMaster>neocoin@gmail.com</webMaster>
    <ttl>5</ttl>
<%
if ['success','fail'].include? cgi.params['state'].to_s
  lists = lists.select{|n| n[:state] == cgi.params['state']}
end
%> 
<% lists.sort_by{|n|n[:time]}.reverse[0..15].each do|n| %>
    <item>
      <title><%= n[:type]%>-<%= n[:name]%></title>
      <link>http://zeropage.neocoin.net/information.html</link>
      <description><%=n[:state]%> <%= hsize(n[:size])%></description>
      <pubDate><%= n[:time].rfc2822%></pubDate>
      <guid><%=n[:name]%></guid>
    </item>
<% end %>
  </channel>
</rss>

